﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;

namespace GUI
{
    public partial class frmLyDo : DevComponents.DotNetBar.Office2007Form
    {
        public frmLyDo()
        {
            InitializeComponent();
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            LyDo = txtLyDo.Text;
            if(!LyDo.Equals(""))
            {
                this.Hide();
            }
            else
            {
                MessageBoxEx.EnableGlass = false;
                MessageBoxEx.Show("Nhập lý do !!!");
            }
        }

        protected override void OnClosing(CancelEventArgs e)
        {
            e.Cancel = true;
        }
    }
}